package com.cheli.managerAsset.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Classname AssetInfoVo
 * @Description
 * @Date 2021/4/5 19:19
 * @Created by cl
 */
@Data
public class AssetInfoVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资产ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "是否借出")
    private Integer isOut;

    @ApiModelProperty(value = "类别ID")
    private String categoryId;

    @ApiModelProperty(value = "类别父级ID")
    private String categoryParentId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "资产名称")
    private String title;

    @ApiModelProperty(value = "资产图片路径")
    private String cover;

    @ApiModelProperty(value = "借出次数")
    private Long count;

    @ApiModelProperty(value = "乐观锁")
    private Long version;

    @ApiModelProperty(value = "状态 Draft未发布  Normal已发布")
    private String status;

    @ApiModelProperty(value = "资产简介")
    private String description;

    @ApiModelProperty(value = "残值率")
    private Integer netSalvage;

    @ApiModelProperty(value = "使用年限")
    private Integer year;

    @ApiModelProperty(value = "原值")
    private BigDecimal price;

    @ApiModelProperty(value = "折旧计算方法")
    private Integer method;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;
}
